package testExcepcions.Exemple06;

public class Empleado {
private String nom;
private int salari;

//java BEAN <-- encapsular un parell d'atributs

public Empleado (String nom, int salari){}
public String getNom() {
	return nom;
}
public void setNom(String nom) {
	this.nom = nom;
}
public int getSalari() {
	return salari;
}
public void setSalari(int salari) {
	this.salari = salari;
}
@Override
public String toString(){
	return "nom: "+nom+", salari: "+salari;
	
}


}
